<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:page="urn:page">
  <xsl:param name="templatename"/>
  <xsl:param name="param"/>
  <xsl:output method="html" encoding="utf-8"/>
  <xsl:template match="/">
    <xsl:if test="$templatename!='A2' and $templatename!='410225'">
      <xsl:for-each select="rows/row">
        <xsl:if test="$param='15460' or $param='25060'">
          <xsl:if test="position()!=1">
            <xsl:text disable-output-escaping="yes">&lt;li&gt;</xsl:text>
          </xsl:if>
          <xsl:if test="position()=1">
            <xsl:text disable-output-escaping="yes">&lt;li class="noleft"&gt;</xsl:text>
          </xsl:if>
        </xsl:if>
        <div><xsl:if test="$param='47160'"><xsl:attribute name="class"><xsl:if test="position()=1 or position()=3"> fl </xsl:if> <xsl:if test="position()=2 or position()=4"> fr </xsl:if> </xsl:attribute></xsl:if> <a target="_blank" title="{F_Title}" href="{F_Url}"><img border="0" width="{substring($param,1,3)}" height="{substring($param,4,3)}" src="{F_Image}"/></a></div>
        <xsl:if test="$templatename='A1'">
          <xsl:text disable-output-escaping="yes">&lt;/li&gt;</xsl:text>
        </xsl:if>
      </xsl:for-each>
    </xsl:if>
    <xsl:if test="$templatename='A2'">
      <div id="SlidePlayer">
        <ul class="Slides">
          <xsl:for-each select="rows/row">
            <li><a target="_blank" title="{F_Title}" href="{F_Url}"><img border="0">
              <xsl:attribute name="src"><xsl:value-of select="F_Image"/></xsl:attribute>
              </img></a></li>
          </xsl:for-each>
        </ul>
      </div>
      <script type="text/javascript">
			new PG.SWFPlayer('SlidePlayer',<xsl:value-of select="substring($param,1,3)"/>,<xsl:value-of select="substring($param,4,3)"/>);
</script>
    </xsl:if>
    <xsl:if test="$templatename='410225'">
      <div id="ifocus_pic">
        <div id="ifocus_piclist" style="left:0; top:0;">
          <ul>
            <xsl:for-each select="rows/row">
              <xsl:variable name="Image" select="page:xSplit(string(F_Images),'|',0)"/>
              <li><a href="/info/content/{ID}.html" style="{F_Style}" title="{F_Title}" target="_blank"><img border="0" alt="{F_Title}" src="{page:xIIF(starts-with($Image,'/files/'),$Image,'/images/v1/common/noimg1.gif')}"/></a> </li>
            </xsl:for-each>
          </ul>
        </div>
        <div id="ifocus_opdiv">&nbsp;</div>
        <div id="ifocus_tx">
          <ul>
            <xsl:for-each select="rows/row">
              <li>
                <xsl:attribute name="class">
                <xsl:if test="position()=1">
                  current
                </xsl:if>
                <xsl:if test="position()&gt;1">
                  normal
                </xsl:if>
                </xsl:attribute>
                <xsl:value-of select="F_Title"/></li>
            </xsl:for-each>
          </ul>
        </div>
      </div>
      <div id="ifocus_btn">
        <ul>
          <xsl:for-each select="rows/row">
            <xsl:variable name="Image" select="page:xSplit(string(F_Images),'|',0)"/>
            <li>
              <xsl:attribute name="class">
              <xsl:if test="position()=1">
                current
              </xsl:if>
              <xsl:if test="position()&gt;1">
                normal
              </xsl:if>
              </xsl:attribute>
              <img alt="{F_Title}" src="{page:xIIF(starts-with($Image,'/files/'),concat('/Thumbnail/',$Image),'/images/v1/common/noimg1.gif')}"/></li>
          </xsl:for-each>
        </ul>
      </div>
    </xsl:if>
  </xsl:template>
</xsl:stylesheet>